﻿using System.IO;
using System.ServiceModel;

namespace WP7BackupService
{
	/// <summary>
	/// Structure that defines which file to upload
	/// </summary>
	[MessageContract]
	public class FileUploadStreamInfo
	{
		/// <summary>
		/// the specific application for which we are storing the file
		/// </summary>
		[MessageHeader]
		public string Application;

		/// <summary>
		/// The tag that identifies the backup set
		/// </summary>
		[MessageHeader]
		public string Set;

		/// <summary>
		/// The name of the file to mirron on the  server
		/// </summary>
		[MessageHeader]
		public string Name;

		/// <summary>
		/// The bytes to send
		/// </summary>
		[MessageBodyMember]
		public Stream Stream;
	}
}